package com.zlq.cn.service.ai;

import com.baidubce.qianfan.model.chat.ChatRequest;
import com.baidubce.qianfan.model.chat.ChatResponse;
import com.baidubce.qianfan.model.completion.CompletionRequest;
import com.baidubce.qianfan.model.completion.CompletionResponse;
import com.zlq.cn.config.FinderConfiguration;
import org.springframework.stereotype.Service;

@Service
public class QianfanService {
//    private final Qianfan qianfan;

    public QianfanService(FinderConfiguration configuration) {
//        qianfan = new Qianfan(Auth.TYPE_OAUTH, configuration.getQianfanAccessKey(), configuration.getQianfanSecretKey());
    }

    public ChatResponse chatCompletion(ChatRequest chatRequest) {
//        ChatResponse chatResponse = qianfan.chatCompletion(chatRequest);

        return null;
    }

    public CompletionResponse completion(CompletionRequest request) {
//        CompletionResponse completionResponse = qianfan.completion(request);

        return null;
    }
}
